/**
 * OrdersStockscoreService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:58
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.OrdersStockscoreMapper;
import com.huamao.zh.model.OrdersStockscore;
import com.huamao.zh.service.OrdersStockscoreService;

@Service
@Transactional
public class OrdersStockscoreServiceImpl implements OrdersStockscoreService {

	@Autowired
	private OrdersStockscoreMapper ordersStockscoreMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersStockscore add(OrdersStockscore ordersStockscore) throws Exception {
		ordersStockscoreMapper.add(ordersStockscore);
		return ordersStockscore;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersStockscore addSelective(OrdersStockscore ordersStockscore) throws Exception {
		ordersStockscoreMapper.addSelective(ordersStockscore);
		return ordersStockscore;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int delete(Map<String, Object> map) {
		return ordersStockscoreMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int update(OrdersStockscore ordersStockscore) throws Exception {
		return ordersStockscoreMapper.update(ordersStockscore);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int updateSelective(OrdersStockscore ordersStockscore) throws Exception {
		return ordersStockscoreMapper.updateSelective(ordersStockscore);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersStockscore get(Integer orderId) {
		OrdersStockscore ordersStockscore = ordersStockscoreMapper.get(orderId);
		return ordersStockscore;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public PageWrapper<OrdersStockscore> search(PageWrapper<OrdersStockscore> pageWrapper) {
		List<OrdersStockscore> ordersStockscores = ordersStockscoreMapper.search(pageWrapper);
		pageWrapper.setList(ordersStockscores);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public List<OrdersStockscore> queryList(Map<String, Object> map) {
		return ordersStockscoreMapper.queryList(map);
	}

}